import Vue from 'vue'
import App from './App.vue'
import router from './router'
import singleSpaVue from "single-spa-vue"
Vue.config.productionTip = false

const appOptions = {
  el:"#microApp",
  router,
  render: h => h(App)
}
const lifeCycle = singleSpaVue({
  Vue,
  appOptions
})

if(window.singleSpaNavigate){
  // eslint-disable-next-line no-undef
  __webpack_public_path__ = `//localhost:9974/`;
} else {
  delete appOptions.el
  new Vue(appOptions).$mount("#app")
}
export const bootstrap = lifeCycle.bootstrap
export const mount = lifeCycle.mount
export const unmount = lifeCycle.unmount